<div class=" animated fadeInRight ecommerce">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>待办单</h5>
                    <div class="ibox-tools" style="top:10px;">
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                        <tr>
                            <th class="text-center">订单号</th>
                            <th class="text-center">订单类型</th>
                            <th class="text-center">订单状态</th>
                            <th class="text-center">申请人</th>
                            <th class="text-center">创建时间</th>
                            <th class="text-center">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr v-for="auditOrder in auditOrdersInfo.auditOrders">
                            <td class="text-center">{{auditOrder.applyOrderId}}</td>
                            <td class="text-center">{{auditOrder.resOrderTypeName}}</td>
                            <td class="text-center">{{auditOrder.stateName}}</td>
                            <td class="text-center">{{auditOrder.userName}}</td>
                            <td class="text-center">{{auditOrder.createTime}}</td>
                            <td class="text-center">
                                <div class="btn-group">
                                    <button class="btn-white btn btn-xs"
                                            v-on:click="_openDetailPurchaseApplyModel(auditOrder)">查看
                                    </button>
                                </div>
                                <div style="display: inline-block;" v-if="auditOrdersInfo.procure == false">
                                    <div class="btn-group"
                                         v-if="auditOrder.state == 1000 || auditOrder.state == 1001">
                                        <!--auditOrdersInfo.currentUserId != auditOrder.userId-->
                                        <!--当前操作人UserId != 申请人userId-->
                                        <button class="btn-white btn btn-xs"
                                                v-on:click="_openAuditOrderModel(auditOrder)">审批
                                        </button>
                                    </div>
                                    <div class="btn-group" v-else>
                                        <button class="btn-white btn btn-xs"
                                                v-on:click="_finishAuditOrder(auditOrder)">结束
                                        </button>
                                    </div>
                                </div>
                                <div class="btn-group" v-else>
                                    <button class="btn-white btn btn-xs"
                                            v-if="auditOrder.state == 1001"
                                            v-on:click="_procureEnterOrder(auditOrder)">采购入库
                                    </button>
                                    <button class="btn-white btn btn-xs"  v-else
                                            v-on:click="_finishAuditOrder(auditOrder)">结束
                                    </button>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                        <tfoot>
                        <tr>
                            <td colspan="7">
                                <ul class="pagination float-right"></ul>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="common/audit" callBackListener="myAuditOrders" callBackFunction="notifyAudit"></vc:create>
</div>